package com.fan.analysis.module.analysis.group.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fan.analysis.module.analysis.group.domain.entity.UserRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户之间的关系
 *
 * @author fan
 * @date 2021/09/24 20:41
 **/
@Component
@Mapper
public interface UserRelationDao extends BaseMapper<UserRelationEntity> {

    /**
     * 获取常用联系人
     *
     * @param phoneNum 手机号
     * @param num      常联系人个数
     * @return 返回常用联系人
     */
    List<UserRelationEntity> listFrequentContacts(@Param("phoneNum") String phoneNum, @Param("num") Integer num);
}
